package com.eorchis.module.trainingquestionnaire.ui.commond;

import java.io.Serializable;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.trainingquestionnaire.domain.UserAnswerLink;
import org.hibernate.validator.constraints.NotBlank;


/**
 * Title: UserAnswerLinkValidCommond<br>
 * Description: 用户答卷关联信息ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author Max
 * @createDate 2014-08-28
 * @version $Revision$
 */
public class UserAnswerLinkValidCommond implements ICommond {
	
	private UserAnswerLink userAnswerLink;
	
	public UserAnswerLinkValidCommond(){
		userAnswerLink = new UserAnswerLink();
	}
	
	public UserAnswerLinkValidCommond(UserAnswerLink userAnswerLink){
		this.userAnswerLink = userAnswerLink;
	}

	public Serializable getEntityID() {
		return userAnswerLink.getUserAnswerId();
	}

	public IBaseEntity toEntity() {
		return userAnswerLink;
	}

	/**
	 * 获取主键
	 */	
	@NotBlank
	public String getUserAnswerId() {
		return userAnswerLink.getUserAnswerId();
	}
	/**
	 * 设置主键
	 */		
	public void setUserAnswerId(String userAnswerId) {
		userAnswerLink.setUserAnswerId(userAnswerId);
	}
	
	/**
	 * 获取主观题答案
	 */	
	public String getQuestionAnswer() {
		return userAnswerLink.getQuestionAnswer();
	}
	/**
	 * 设置主观题答案
	 */		
	public void setQuestionAnswer(String questionAnswer) {
		userAnswerLink.setQuestionAnswer(questionAnswer);
	}
	/**
	 * 获取客观题答案
	 */	
	public String getQuestionOption() {
		return userAnswerLink.getQuestionOption();
	}
	/**
	 * 设置客观题答案
	 */		
	public void setQuestionOption(String questionOption) {
		userAnswerLink.setQuestionOption(questionOption);
	}
	
}
